package com.suptrack.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;





@Entity
@XmlRootElement
public class Position implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id	@GeneratedValue(strategy=GenerationType.AUTO)
	private long id;
	
	private double positionx;
	private double positiony;
	private Date date_record;
	
	@ManyToOne
	@JoinColumn
	private Car Car;
	
	
	
	
	@XmlTransient
	public Car getCar() {
		return Car;
	}
	public void setCar(Car car) {
		Car = car;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public double getPositionx() {
		return positionx;
	}
	public void setPositionx(double positionx) {
		this.positionx = positionx;
	}
	public double getPositiony() {
		return positiony;
	}
	public void setPositiony(double positiony) {
		this.positiony = positiony;
	}
	public Date getDate_record() {
		return date_record;
	}
	public void setDate_record(Date date_record) {
		this.date_record = date_record;
	}

}
